﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="Administration.aspx.cs" Inherits="App.Administration" Theme="Alpha" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel2" runat="server">


        <h1><asp:Label ID="Label14" runat="server" Text="Zobrazit všechny týmy" CssClass="actionButton"></asp:Label></h1>
        <asp:Panel ID="Panel5" runat="server">
            <asp:Repeater ID="RepeaterTeamForums" runat="server">
                <HeaderTemplate>
                </HeaderTemplate>
                <ItemTemplate>
                    <div class="forum">
                    <ajaxToolkit:Gravatar ID="ImageAvatar" runat="server" Height="50" Width="50" DefaultImageBehavior="Identicon" Email='<%#Eval("TeamID")%>' DefaultImage='<%#Eval("ImageURL")%>'/>
                    <div>
                    <asp:LinkButton ID="LinkButtonTeamMember" runat="server" Text=' <%#Eval("TeamName")%>' CommandArgument='<%#Eval("TeamID")%>' OnClick="LinkButtonTeamDetail_Click"/>
                    -
                    <asp:LinkButton ID="LinkButtonTeam" runat="server" CommandArgument='<%#Eval("TeamID")%>' OnClick="LinkButtonTeam_Click">forum</asp:LinkButton>
                    -
                    <asp:LinkButton ID="LinkButtonEvents" runat="server" CommandArgument='<%#Eval("TeamID")%>' OnClick="LinkButtonEvents_Click">akce vypsané pro tým</asp:LinkButton>
                    </div>
                </div>
                </ItemTemplate>
            </asp:Repeater>
        </asp:Panel>
        <ajaxToolkit:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="Server" TargetControlID="Panel5" CollapsedSize="0" ExpandedSize="0" Collapsed="True" ExpandControlID="Label14" CollapseControlID="Label14" AutoCollapse="False" AutoExpand="False" TextLabelID="Label14" CollapsedText="Zobrazit všechny týmy" ExpandedText="Skrýt týmy" ExpandDirection="Vertical" />
        
        <h1 style="padding-top: 40px;"><asp:Label ID="Label13" runat="server" Text="Label" CssClass="actionButton">Vytvoření nové akce</asp:Label></h1>
        
        <asp:Panel ID="Panel1" runat="server">
        <asp:Label ID="lblInfo" runat="server" CssClass="formMessage"></asp:Label>      
            <asp:Panel ID="Panel3" runat="server">
                <div class="formField">
                    <asp:Label ID="Label1" runat="server" Text="Název akce: "></asp:Label>
                    <asp:TextBox ID="txtboxEventName" runat="server" ValidationGroup="EventValidation" MaxLength="50"></asp:TextBox>
                </div>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtboxEventName" ErrorMessage="Název akce musí být zadán"  ValidationGroup="EventValidation"></asp:RequiredFieldValidator>
                <div class="formField">
                    <asp:Label ID="Label2" runat="server" Text="Datum konání: "></asp:Label>
                    <asp:TextBox ID="txtboxEventDate" runat="server" ToolTip="Datum ve formátu: DEN.MĚSÍC.ROK" ValidationGroup="EventValidation" MaxLength="50"></asp:TextBox>
                    <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtboxEventDate" Format="dd.MM.yyyy" TodaysDateFormat="d, MMMM, yyyy"></asp:CalendarExtender>
                </div>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtboxEventDate" ErrorMessage="Špatný formát data" Operator="DataTypeCheck" Type="Date" ValidationGroup="EventValidation"></asp:CompareValidator>
                <div class="formSelect">
                    <asp:Label ID="Label10" runat="server" Text="Čas konání: "></asp:Label>
                        <asp:DropDownList ID="DropDownList1" runat="server" CssClass="small">
                        <asp:ListItem>00</asp:ListItem>
                        <asp:ListItem>01</asp:ListItem>
                        <asp:ListItem>02</asp:ListItem>
                        <asp:ListItem>03</asp:ListItem>
                        <asp:ListItem>04</asp:ListItem>
                        <asp:ListItem>05</asp:ListItem>
                        <asp:ListItem>06</asp:ListItem>
                        <asp:ListItem>07</asp:ListItem>
                        <asp:ListItem>08</asp:ListItem>
                        <asp:ListItem>09</asp:ListItem>
                        <asp:ListItem Selected="True">10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                        <asp:ListItem>13</asp:ListItem>
                        <asp:ListItem>14</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
                        <asp:ListItem>16</asp:ListItem>
                        <asp:ListItem>17</asp:ListItem>
                        <asp:ListItem>18</asp:ListItem>
                        <asp:ListItem>19</asp:ListItem>
                        <asp:ListItem>20</asp:ListItem>
                        <asp:ListItem>21</asp:ListItem>
                        <asp:ListItem>22</asp:ListItem>
                        <asp:ListItem>23</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="DropDownList2" runat="server" CssClass="small">
                        <asp:ListItem>00</asp:ListItem>
                        <asp:ListItem>05</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
                        <asp:ListItem>20</asp:ListItem>
                        <asp:ListItem>25</asp:ListItem>
                        <asp:ListItem>30</asp:ListItem>
                        <asp:ListItem>35</asp:ListItem>
                        <asp:ListItem>40</asp:ListItem>
                        <asp:ListItem>45</asp:ListItem>
                        <asp:ListItem>50</asp:ListItem>
                        <asp:ListItem>55</asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="formField">
                    <asp:Label ID="Label4" runat="server" Text="Místo konání: "></asp:Label>
                    <asp:TextBox ID="txtboxAddress" runat="server" MaxLength="50"></asp:TextBox>
                </div>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtboxAddress" ErrorMessage="Místo konání musí být zadáno" ValidationGroup="EventValidation"></asp:RequiredFieldValidator>
                <div class="formCheckbox">
                    <asp:Label ID="Label12" runat="server" Text="Pro všechny týmy:"></asp:Label>
                    <asp:CheckBox ID="CheckBoxAllTeam" runat="server" Text="" oncheckedchanged="CheckBoxAllTeam_CheckedChanged" AutoPostBack="true" />                       
                </div>

                <div class="formSelect">
                    <asp:Label ID="Label11" runat="server" Text="Akce je pro tým: "></asp:Label>
                    <asp:DropDownList ID="DropDownListTeamEvent" runat="server" onselectedindexchanged="DropDownListTeamEvent_SelectedIndexChanged" AutoPostBack="True"  ></asp:DropDownList>
                </div>
                <div class="formTextarea">
                    <asp:Label ID="Label3" runat="server" Text="Popis akce: "></asp:Label>
                    <asp:TextBox ID="txtboxDescription" runat="server" TextMode="MultiLine" MaxLength="100"></asp:TextBox>
                </div>
                <div class="formCheckbox">
                    <asp:Label ID="Label9" runat="server" Text="Pravidelná akce: "></asp:Label>
                    <asp:CheckBox ID="chckRepeatable" runat="server" Text="" oncheckedchanged="CheckBox1_CheckedChanged" AutoPostBack="True" />
                </div>
                <asp:Panel ID="Panel4" runat="server" Visible="False">
                    <div class="formSelect">
                        <asp:Label ID="Label7" runat="server" Text="Opakovat: "></asp:Label>
                        <asp:ListBox ID="ListBox1" runat="server" Rows="1">
                            <asp:ListItem Value="1">Každý den</asp:ListItem>
                            <asp:ListItem Value="7">Každý týden</asp:ListItem>
                            <asp:ListItem Value="14">Každý druhý týden</asp:ListItem>
                            <asp:ListItem Value="21">Každý třetí týden</asp:ListItem>
                            <asp:ListItem Value="28">Každý měsíc</asp:ListItem>
                        </asp:ListBox>
                    </div>
                </asp:Panel>
                <asp:RegularExpressionValidator ID="regComments" runat="server" ControlToValidate="txtboxDescription" ErrorMessage="Popis akce může obsahovat pouze 100 znaků" ValidationExpression="^[\s\S]{0,100}$" ValidationGroup="EventValidation"></asp:RegularExpressionValidator>
                <div class="formField">
                    <asp:Label ID="Label8" runat="server" Text="Opakovat do: " Visible="False"></asp:Label>
                    <asp:TextBox ID="txtboxFinalDate" runat="server" ToolTip="Datum ve formátu: DEN.MĚSÍC.ROK" ValidationGroup="EventValidation" Visible="False" MaxLength="50"></asp:TextBox>
                    <asp:CalendarExtender ID="txtboxFinalDate_CalendarExtender" runat="server" Format="dd.MM.yyyy" TargetControlID="txtboxFinalDate"></asp:CalendarExtender>
                </div>
                <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="txtboxFinalDate" ErrorMessage="Špatný formát data" Operator="DataTypeCheck" Type="Date" ValidationGroup="EventValidation" Enabled="False"></asp:CompareValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtboxFinalDate" ErrorMessage="Zadejte datum" ValidationGroup="EventValidation" Enabled="False"></asp:RequiredFieldValidator>
                <div class="formButton">
                    <asp:Button ID="Button1" runat="server" Height="23px" onclick="Button1_Click" Text="Vytvořit akci" ValidationGroup="EventValidation" />
                </div>
             </asp:Panel>
         </asp:Panel>
         <ajaxToolkit:CollapsiblePanelExtender ID="cpe" runat="Server" TargetControlID="Panel1" CollapsedSize="0" ExpandedSize="0" Collapsed="True" ExpandControlID="Label13" CollapseControlID="Label13" AutoCollapse="False" AutoExpand="False" TextLabelID="Label13" CollapsedText="Vytvořit akci" ExpandedText="Skrýt" ExpandDirection="Vertical" />
        
            
    </asp:Panel>
</asp:Content>
